package org.nstack.network.service.eip;

import org.nstack.header.message.APIEvent;
import org.nstack.header.rest.RestResponse;


@RestResponse(allTo = "inventory")
public class APIDetachEipEvent extends APIEvent {

    private EipInventory inventory;

    public EipInventory getInventory() {
        return inventory;
    }

    public void setInventory(EipInventory inventory) {
        this.inventory = inventory;
    }

    public APIDetachEipEvent(String apiId) {
        super(apiId);
    }

    public APIDetachEipEvent() {
        super(null);
    }
 
    public static APIDetachEipEvent __example__() {
        APIDetachEipEvent event = new APIDetachEipEvent();

        EipInventory eip = new EipInventory();
        eip.setVipUuid(uuid());
        eip.setVmNicUuid(uuid());
        eip.setName("Test-EIP");

        event.setInventory(eip);
        return event;
    }

}
